from django.db import models
from ..myModels.userModel import *

class PreOrder(models.Model):
    user = models.ForeignKey(to=User,on_delete=models.SET_NULL,null=True)
    cart_id= models.CharField(max_length=50)
    discount= models.DecimalField(max_digits=3,decimal_places=2)
    expressFee= models.IntegerField(default=1000)
    full_reduce_money= models.IntegerField(default=10000)
    total_money= models.IntegerField()
    ctime = models.DateTimeField( '创建时间', null=True, auto_now_add=True)
    utime = models.DateTimeField( '更新时间', null=True, auto_now_add=True)